<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ page import="org.jasig.cas.client.authentication.AttributePrincipal" %>
<%@ page import="java.util.Map" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>客户端1</title>
</head>
<body>
<%
    AttributePrincipal principal = (AttributePrincipal) request.getUserPrincipal();
    Map<String, Object> attributes = principal.getAttributes();
    String userName = (String) attributes.get("userName");
    String userId = principal.getName();
%>
<jsp:directive.include file="/WEB-INF/view/jsp/includes/top.jsp"/>
<a href="http://localhost:8080/logout?service=http://localhost:8082/">退出</a><br/>
<br/>-----------------------------------------------------------------<br/>

登录成功！！！<%= userId %><%= userName %>

<br/>-----------------------------------------------------------------<br/>

<jsp:directive.include file="/WEB-INF/view/jsp/includes/bottom.jsp"/>
</body>
</html>